// FormMainChildDlg15Sub02.cpp : implementation file
//

#include "stdafx.h"
#include "diabetes.h"
#include "FormMainChildDlg15.h"
#include "FormMainChildDlg15Sub01.h"
#include "FormMainChildDlg15Sub02.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CFormMainChildDlg15Sub02 dialog


CFormMainChildDlg15Sub02::CFormMainChildDlg15Sub02(CWnd* pParent /*=NULL*/)
	: CDialog(CFormMainChildDlg15Sub02::IDD, pParent)
{
	//{{AFX_DATA_INIT(CFormMainChildDlg15Sub02)
	//}}AFX_DATA_INIT
}

void CFormMainChildDlg15Sub02::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CFormMainChildDlg15Sub02)
	DDX_Control(pDX, IDC_STATIC_DLG11_SUB02_TITLE, m_dlg15_sub02_title);
	//}}AFX_DATA_MAP
}

void CFormMainChildDlg15Sub02::ClickItem(CString file, CString title)
{
	m_HtmlCtrl.Navigate2(file);
	m_dlg15_sub02_title.SetWindowText(title);
}

BEGIN_MESSAGE_MAP(CFormMainChildDlg15Sub02, CDialog)
	//{{AFX_MSG_MAP(CFormMainChildDlg15Sub02)
	ON_BN_CLICKED(IDC_DLG11_SUB02_BTN_RETURN, OnDlg15Sub02BtnReturn)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CFormMainChildDlg15Sub02 message handlers

BOOL CFormMainChildDlg15Sub02::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	::SetShapeWindowSkin(m_hWnd, "IDD_FORM_MAIN_CHILD_DLG11_SUB02");
	m_HtmlCtrl.CreateFromStatic(IDC_CHILD_WEB,this); 
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CFormMainChildDlg15Sub02::OnDlg15Sub02BtnReturn() 
{
	CFormMainChildDlg15* pWnd = (CFormMainChildDlg15*)this->GetParent()->GetParent();
	pWnd->m_dlg15_tab.SetCurSel(0);
}
